/*
* Copyright 2017 Yonyou Auto Information Technology（Shanghai） Co., Ltd. All Rights Reserved.
*
* This software is published under the terms of the YONYOU Software
* License version 1.0, a copy of which has been included with this
* distribution in the LICENSE.txt file.
*
* @Project Name : marketing-service-customer
*
* @File name : CustomerServiceInterface.java
*
* @Author : Administrator
*
* @Date : 2017年4月5日
*
----------------------------------------------------------------------------------
*     Date       Who       Version     Comments
* 1. 2017年4月5日    Administrator    1.0
*
*
*
*
----------------------------------------------------------------------------------
*/
	
package com.yonyou.gmmc.service.customer.service;

import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;



/**
* 调用WECHAT_PUSH的接口
* @author Administrator
* 
* @date 2017年4月5日
*/

@FeignClient(name="SERVICE-WECHAT-PUSH" )
public interface CustomerServiceInterface {

    
    /**
    * OPENID拿头像
    * @author Administrator
    * 
    * @date 2017年6月1日
    * @param openid
    * @return
    */
    @RequestMapping(value = "/wechat-push/api/v1/user/{openid}", method = RequestMethod.GET,consumes = "application/json;UTF-8")
    String getImgurlByOpenId(@PathVariable("openid") String openid);
    
    /**
    * 拿TOKEN
    * @author Administrator
    * 
    * @date 2017年6月1日
    * @return
    */
    /*@RequestMapping(value = "/genToken", method = RequestMethod.GET,consumes = "application/json;UTF-8")
    String genToken();*/
    
    /**
     * 拿TOKEN
     * @author Administrator
     * 
     * @date 2017年6月1日
     * @return
     */
     @RequestMapping(value = "/Token", method = RequestMethod.GET,consumes = "application/json;UTF-8")
     String genToken();
     
    
    /**
     * 
     */
    
    /**
     * OPENID拿头像
     * @author Administrator
     * 
     * @date 2017年6月1日
     * @param openid
     * @return
     */
     @RequestMapping(value = "/wechat-push/api/v1/sendTextMsg/{openId}/{content}", method = RequestMethod.GET,consumes = "application/json;UTF-8")
     String sendTextMsg(@PathVariable("openId") String openId,@PathVariable("content") String content);
}
